package JDK8;

import java.util.function.Predicate;

/*

 */
public class PredicateDemo {
    public static void main(String[] args) {
        boolean flag=method("asc",(str)->{
            return str.contains("s");
        });
        System.out.println(flag);
    }
    public static boolean method(String str, Predicate<String> predicate){
        return predicate.test(str);
    }
}
